<?php
function ListWeather()
{
    global $dbsql;
    $list       = array();
    $sql_select = "select * from tblweather order by iOrder";
    $rs=$dbsql->query($sql_select);
    while ( $result = $dbsql->fetch_array($rs) )
    {
    	$arr=explode("|",$result['cWeather']);
    	$doc=$arr[0];
    	$sta=$arr[1];
    	$hum=$arr[2];
    	$win=$arr[3];
    	$result['cContent']=$doc;
    	$result['STA']=$sta;
    	$result['Time']=@date("d/m H:i:s",$result['iTimeUpdate']);

    	$list[]=$result;

    }
    return $list;
}
?>